package thread;

public class ThreadUtils {

    private static final String STRING_FORMAT = "%s:%s";

    public static void sleep(int milliSec) {
        try {
            Thread.sleep(milliSec);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void print(String threadName, Thread.State state) {
        System.out.println(String.format(STRING_FORMAT, threadName, state));
    }

}
